/**
 *
 */
package com.elite.groovy.callback

import com.elite.groovy.kh.DHAESUtil
import com.elite.groovy.util.EliteBean
import com.elite.groovy.util.Util

import com.elite.groovy.kh.getProperty
import org.apache.commons.logging.Log
import org.apache.commons.logging.LogFactory

import javax.servlet.http.HttpServletRequest
import javax.servlet.http.HttpServletResponse

/**
 * @author ThinkPad
 *
 */
class aesutilDecrypt implements ServiceBackInvoke {
    private static final Log log=LogFactory.getLog(aesutilDecrypt.class);

    String doCallBack(EliteBean eliteBean, HttpServletRequest request, HttpServletResponse response) {

        def body1= Util.getRequestBody(request,"utf-8");
        log.debug("body1----------------:"+body1);


        def assertKey = getProperty.get("ZhanYeAESPassword")
        def aesmi2= DHAESUtil.decrypt(body1,assertKey) ;

        log.debug("解密后数据32212是："+aesmi2);

        return aesmi2;
    }

}